package sem.droid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class StartActivity extends Activity implements OnClickListener {

	private Button sparqler;
	private Button map;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.start_menu);

		sparqler = (Button) findViewById(R.id.sparqler);
		sparqler.setOnClickListener(this);

		map = (Button) findViewById(R.id.map);
		map.setOnClickListener(this);
	}

	@Override
	public void onClick(View view) {
		if (view.equals(sparqler)) {
			Intent myIntent = new Intent(view.getContext(),
					SemDroidActivity.class);
			startActivity(myIntent);
		} else if (view.equals(map)) {
			Intent myIntent = new Intent(view.getContext(), MyMapActivity.class);
			startActivity(myIntent);
		}
	}
}
